﻿using UnityEngine;
using System.Collections;
using UnityEditor;

static public class VampireToolsForMissionMenu
{

    public static EditorApplication.CallbackFunction be;

    [MenuItem("MissionEditor/编辑地图")]
    static public void OpenMapEditorMainWindow()
    {
        be = () => { };
        MainWindow map = EditorWindow.GetWindow<MainWindow>(false, "地图编辑器", true);
        map.Show();
        map.Focus();
    }
    [MenuItem("MissionEditor/编辑刷怪")]
    static public void OpenMosnterSpawnMainWindow()
    {
        //MonsterSpawnMianWindow spawn = EditorWindow.GetWindow<MonsterSpawnMianWindow>(false, "刷怪编辑器", true);
        //spawn.Show();
        //spawn.Focus();
    }
}

static public class VampireEditorTools
{
    static public bool DrawPrefixButton(string text)
    {
        return false;
        //return GUILayout.Label(text,GUILayout.Width(120f));
    }
}
